projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26506b0
)
gl renderer: Pull a local variable in the closest scope
author
Timm Bäder
<mail@baedert.org>
Fri, 17 Jan 2020 15:37:29 +0000
(16:37 +0100)
committer
Timm Bäder
<mail@baedert.org>
Sat, 18 Jan 2020 07:49:52 +0000
(08:49 +0100)
gsk/gl/gskglrenderer.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskglrenderer.c
b/gsk/gl/gskglrenderer.c
index 1753ad04687e869ae8e2aeb51b476be36209e506..81970a61b7cd2c957683a8e141aa251536e3224a 100644
(file)
--- a/
gsk/gl/gskglrenderer.c
+++ b/
gsk/gl/gskglrenderer.c
@@
-753,7
+753,6
@@
render_border_node (GskGLRenderer *self,
const GdkRGBA *colors = gsk_border_node_peek_colors (node);
const GskRoundedRect *rounded_outline = gsk_border_node_peek_outline (node);
const float *og_widths = gsk_border_node_peek_widths (node);
- GskRoundedRect outline;
float widths[4];
int i;
struct {
@@
-877,6
+876,7
@@
render_border_node (GskGLRenderer *self,
}
};
int indices[4] = { 0, 1, 2, 3 };
+ GskRoundedRect outline;
/* We sort them by color */
sort_border_sides (colors, indices);